<?php use_helper('I18N') ?>

<form action="<?php echo url_for('@sf_guard_signin') ?>" method="post">
  <fieldset>
    <table>
      <tbody>
        <?php echo $form ?>
      </tbody>
      <tfoot>
        <tr>
          <td colspan="2">
            <?php $routes = $sf_context->getRouting()->getRoutes() ?>

            <?php if (isset($routes['sf_guard_forgot_password'])): ?>
              <a class="quiet" href="<?php echo url_for('@sf_guard_forgot_password') ?>"><?php echo __('Forgot your password?', null, 'sf_guard') ?></a>
            <?php endif; ?>

            <?php if (isset($routes['sf_guard_register'])): ?>
              &nbsp; <a class="quiet" href="<?php echo url_for('@sf_guard_register') ?>"><?php echo __('Want to register?', null, 'sf_guard') ?></a>
            <?php endif; ?>
            <input class="button" type="submit" value="<?php echo __('Signin', null, 'sf_guard') ?>" />
          </td>
        </tr>
      </tfoot>
    </table>
  </fieldset>
</form>